home *** CD-ROM | disk | FTP | other *** search
/ Megahits 3 / Megahits 3 (1994)(GTI - Rhein-Main-Soft)(DE)[!].iso / module / utilities / archives / mod2midi3.lha / Mod2Midi / source / TEXTWIN.H < prev   
C/C++ Source or Header  |  1992-09-02  |  1KB  |  56 lines

  1. /*
  2.  * TEXTWIN.H - Text-windowing system header
  3.  * (c)opyright Andrew Scott 1993
  4.  *
  5.  * Turbo C 2.0
  6.  *
  7.  * Author: Andrew Scott (Adrenalin Software)
  8.  *
  9.  * Date: 14/3/1993 ver 0.1
  10.  *       17/4/1993 ver 0.1a
  11.  */
  12.  
  13. extern char *FileSelect( char **sp, char *def);
  14.  
  15. extern void MainWindow(char *title, int n, ...);
  16. /* Post: Screen is set up with a nice title and n menus */
  17.  
  18. extern void SetMenu(int menu, int n, ...);
  19. /* Post: n commands has been set in menu #menu (0 = 1st) */
  20.  
  21. extern int Choice( void );
  22. /*
  23.  * Returns: a function reference number corresponding to a chosen command,
  24.  *   but returns -1 on an error.
  25.  */
  26.  
  27. extern int ScrollChoice(char *title, char **sp, int w);
  28. /*
  29.  * Returns: The offset of the string from s which is chosen, -1 on none
  30.  *    s points to the start of a list of strings, max length w, NULL term.
  31.  */
  32.  
  33. extern void ClearWin( void );
  34. /* Post: Area below command and title bars is clear */
  35.  
  36. extern void DrawBox(char **sp);
  37. /* Post: The NULL-terminated array of strings pointed to by sp is printed */
  38.  
  39. extern char InfoBoxOld(char **sp);
  40. extern char InfoBox(char **sp);
  41. /*
  42.  * Returns: The key pressed after the NULL-terminated array of strings
  43.  *    pointed to by sp is printed.
  44.  */
  45.  
  46.  
  47. extern char *DialogBox(char **sp, char *def);
  48. /*
  49.  * Returns: The string entered (or def if none entered), after printing
  50.  *    box filled with NULL-terminated strings sp.
  51.  */
  52.  
  53. extern void EndWindows( void );
  54. /* Post: Windows are freed up */
  55.  
  56.